import Vue from 'vue'
import { Loading } from 'element-ui';
Vue.prototype.$startLoading = function () {
    Vue.prototype.$customLoading = Loading.service({
        lock: true,
        text: '请稍后...',
        body: false,
        customClass: 'custom-update-loading',
        background: 'rgba(0, 0, 0, 0.5)'
    })
}
Vue.prototype.$endLoading = function () {
    Vue.prototype.$customLoading.close()
}